package cate.common.table.farm.config.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "副本购买消耗")
public class FbBuyConsumeRow extends ERow {

    @NoteField(value = "功能ID")
    public int funcId;

    @NoteField(value = "开始次数")
    public int start;

    @NoteField(value = "结束次数")
    public int end;

    @NoteField(value = "消耗")
    public String consumeStr;

    @NoteField(value = "递增消耗")
    public String extraConsumeStr;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID", 0);
        this.funcId = xrw.getInteger("功能ID", 0);
        this.start = xrw.getInteger("开始次数", 0);
        this.end = xrw.getInteger("结束次数", 0);
        this.consumeStr = xrw.getString("消耗");
        this.extraConsumeStr = xrw.getString("递增消耗");
    }

    @Override
    public void decode() {
    }
}
